<?php
/***
* @ author	Mr.Asong
* @ link	http://mrasong.com
* @ mail	i(at)mrasong.com 把(at)换成@
* @ build	2011-12-18
* @ version	1.0.6
*/
$config = array(
	'site_name'		=> '智能领号系统',  //网站标题名称
	'site_url'		=> 'http://mrasong.com',  //网站地址
	'password'		=> 'mrasong', //添加数据时的密码
	'admin'		=> 'mrasong.php', //添加数据的地址
	'hash'		=> '18f167ee38424e56f597c66958ecbed4', //这个不用改
	'max'		=> 6 ,  //每个IP指定时间内可以获得的数量
	'time'		=> 24 ,  //指定时间内 默认24小时
	
	'str_0'		=> '距离领取卡号的时间还剩',
	'str_sec'	=> 5,  //等待多少秒
	'str_1'		=> '秒',
	'str_2'		=> '为了避免浪费，请耐心等待！',
	'str_3'		=> '恭喜您获得领取资格,请点击确认领取！',
	'str_4'		=> '确认领取',
	'str_5'		=> '请复制以下的卡号在相关的页面进行激活！',
	'str_6'		=> '复制卡号',
	'str_7'		=> '如果您成功领取到奖励的，请把我们网站介绍给你最好的朋友！',
	'str_8'		=> '推荐朋友',
	'str_9'		=> '复制成功',
	'str_10'	=> '一个IP ',
	'str_10_1'	=> ' 小时内只能获取',
	'str_11'	=> '次！',
	'str_12'	=> '卡号已经发放完了，请稍后关注！',
	'str_13'	=> '加载中',
	'str_14'	=> '返回'
);
function getSN(){
	$data = '18f167ee38424e56f597c66958ecbed4.php';
	chmod($data,0777);
	$lines = @file($data);
	$no = count($lines);
	$sn = "none";
	if( $no > 1 ){
		$rand = rand(1,$no-1);
		$sn = trim($lines[$rand]);
		$str = $lines[0];
		for( $i=1; $i<$no; $i++ ){
			if( $i <> $rand ){
					$str .= $lines[$i] ;				
			}
		}
		$f = @fopen($data,'wb+');

		@fwrite($f, trim($str));
		@fclose($f);
	}
	echo '{"sn":"'. $sn .'","no":"'.($no-1).'"}';
}
function clear(){
	$data = '18f167ee38424e56f597c66958ecbed4.php';
	chmod($data,0777);
	$lines = @file($data);
	$str = trim( $lines[0]  );
	$f = @fopen($data,'wb+');
	
	if ( @fwrite($f, $str) === FALSE){
		echo "0";
	}else{
		echo "1";
	}
	@fclose($f);
}
function add($content){
	$data = '18f167ee38424e56f597c66958ecbed4.php';
	chmod($data,0777);
	$lines = @file($data);
	$f = @fopen($data,'ab');
	$no = count($lines);
	if( @fwrite($f, "\n".$content) === false ){
		$tips = '0';
	}else{
		$tips = '1';
		$newFile = @file($data);
		$no = count($newFile)-1;
	}
	fclose($f);
	echo '{"info":"'.$tips.'","no":"'.$no.'"}';
}
function getContent(){
	$data = '18f167ee38424e56f597c66958ecbed4.php';
	$tmp = str_replace("<?php /**","",@file_get_contents($data));
	return trim($tmp);
}
function getInfo(){
	$data = '18f167ee38424e56f597c66958ecbed4.php';
	chmod($data,0777);
	$lines = @file($data);
	$no = count($lines)-1;
	return $no;
}
function myinfo(){
	return '
iVBORw0KGgoAAAANSUhEUgAAAJgAAAAoCAMAAAA11sNmAAAAA3NCSVQICAjb4U/gAAAA81BMVEX////////////////////////////////////////////x8/Xx8fHw8vT47u7h5+rl5eXU2+DX19fEz9XMzMy3xMu9vb2mtr+ysrKwsLCarLfXnJyWqbSlpaWLn6yZmZnRi4t9lKKMjIzKe3tshpZ9fX1gfY2/X19ScYNmZma5T09DZXhZWVmyPz/////x8/Xx8fHh5+rl5eXU2+DX19fEz9XMzMy3xMu9vb2mtr+ysrKarLelpaWLn6yZmZl9lKKMjIxshpZ9fX1gfY1ycnJScYNmZmZDZXhZWVmyPz81WW5MTEwnTWQ/Pz8ZQlozMzOZAACvS3tpAAAAUXRSTlMAESIzRFVmd4iZqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7tZUCnWAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFnRFWHRDcmVhdGlvbiBUaW1lADEyLzA0LzExpJZgVwAABBF0RVh0WE1MOmNvbS5hZG9iZS54bXAAPD94cGFja2V0IGJlZ2luPSIgICAiIG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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg/WvYqwAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAAanSURBVFiFzVh9Xxo5EC67sLuJcghLxaMWaw9brddQapFapYp0QSnu9vt/mptnkuwLWmn9nXfmH5IhmTyZzDwz2WfPnnYruW7ZdUtFQVFyz8pfmvig5pQ93/e9slMU5CX3rvyFiQ9qpbIXCCGCVL0RQHK/KX554sOa6wV/7k0P9oRVT4KNnen0YCPw3FUrw04U7VdXTXwgMF8cJNRSHCRoQrAp/BXAfNGJqbWFX34EYGVffAWO11Y9CY4h+LpivxJNHADYTAaVR/Ayi+O7UV+ySFcBcyqBHANYXBePcZcWB10dq8d+3zGergDmemJtwcC6NPPfd38C9o2B7Wn1tN9Wsgys5LjuMl/RwjbjihdrOZM5RVZ0lknyDnV6jlNisZXi5q4YSLIO9RizwZIb4VewhFvFW+YrWHYexxGQtewZSi7PpKm8wa2h0WbUFedUIPbSTaBf40q2YDIyWNOMZeDxErQi1aHRxDCOJ8O8+4NxmdoEn6IwdB23bLVp6dKcgMVBxloAwja7IvVuhdmDbdYQgV5CTa43m+six6SwbDeOT9QcyGp8lw4YV9bDQVjHBi4PazSsAUWl4mfq6mF+DpasSRZXc6z1MknObjQS3/PFBt0ih0NTStl4eUmgz77ADW/ylEsHqpF3KXUOYLswNuES9a6Oh3ibdVU7jDuedwROWW+PZ3F8fjLhSfM6z6l19YrZCOKOZU86+GWSHF9oKgto9V6SXDKBfFHqOMm3nRzllpldx0r12f1hbMLVim3bJwOI+iIdH65JGcbFNq/SnFZRZoHhRqZJ8ukTu7uUQpLBko+aYZX6NNWBkNwsATOuf6SUsu5PvlJDd9TvEb1FZG7GFQ1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